const path = require('path');
module.exports = {
    entry:"./src/index.js",//相对路径
    output:{
        path:path.resolve(__dirname,"./dist"),
        filename:"main.js"
    },
    module:{
        rules:[
            {
                test:/\.(png|jpe?g|gif|webp)$/,
                type:"asset"
            }
        ]
    },
    plugins:[],
    mode:"development",
}